; -- WindowsInstaller.iss --
; Generates an installer and uninstaller for Me.Te.Or. player under Windows
; (to be used with INNO setup, http://www.jrsoftware.org/isinfo.php )

; TODO add all qt dlls and runtime files
; TODO file association does not work

[Setup]
AppName=Starvax
AppId=Starvax MeTeOr Player
AppVersion=2.0
DefaultDirName={pf}\MeTeOr\Starvax
UninstallDisplayIcon={app}\Starvax.exe
VersionInfoDescription=Starvax MeTeOr player
VersionInfoProductName=Starvax MeTeOr player
OutputDir=..\Win32Install

[Files]
Source: "..\build-MeteorPlayer2-msvc\release\MeteorPlayer2.exe"; DestDir: "{app}"
Source: ".\dmx\dll\*.*"; DestDir: "{app}"
Source: "res\*"; DestDir: "{app}\res"; Flags: recursesubdirs

[Setup]
ChangesAssociations=yes
SetupIconFile="resources\starvax.ico"

[Tasks]
Name: associateMts; Description: "Associate ""mts"" extension"; GroupDescription: File extensions:

[Registry]
Root: HKCR; Subkey: ".mts"; ValueType: string; ValueName: ""; ValueData: "Starvax Me.Te.Or. show"; Flags: uninsdeletevalue; Tasks: associateMts
Root: HKCR; Subkey: ".mts\OpenWithList"; ValueType: string; ValueName: "Starvax"; ValueData: ""; Flags: uninsdeletevalue; Tasks: associateMts
Root: HKCR; Subkey: "mts"; ValueType: string; ValueName: ""; ValueData: "Starvax MeTeOr Player"; Flags: uninsdeletekey; Tasks: associateMts
Root: HKCR; Subkey: "mts\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Starvax.exe,0"; Tasks: associateMts
Root: HKCR; Subkey: "mts\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\Starvax.exe"" ""%1"""; Tasks: associateMts

